package com.mapper;

import com.domain.Book;
import com.domain.BookAndComments;
import com.domain.Comments;
import com.github.pagehelper.Page;

import java.util.List;

public interface BookAndCommentsMapper {

    //显示所有书籍的评论
    List<BookAndComments> selectAll();

    //增加中间表信息
    Integer addBookAndComments(BookAndComments bookAndComments);

    //增加评论表信息
    Integer addComments(Comments comments);

    Page<BookAndComments> findByIsbn(String isbn);

    //根据书名或者评价搜索书籍
    Page<BookAndComments> search(BookAndComments bookAndComments);

}
